<?php

namespace app\common\validate\shop;

use app\common\validate\BaseValidate;

class AddressValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name|收货人' => 'require|length:2,50',
        'mobile|手机号' => 'require|isMobile',
        'province|省' => 'require|integer',
        'city|市' => 'require|integer',
        'area|区' => 'require|integer',
        'detail|详细地址' => 'require|length:2, 50',
        'is_default|默认地址' => 'require|in:0,1'
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];


    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
